﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ForumPages
{
	public class ForumPost
	{
		public int Id { get; set; }
		public int UserId { get; set; }
		public string Title { get; set; }
		public string Content { get; set; }

		public string Ifsolve { get; set; }
		public DateTime CreateTime { get; set; }
		public DateTime UpdateTime { get; set; }
	}

	public class ForumPostTag
	{
		[Key, Column(Order = 0)]
		public int PostId { get; set; }
		[Key, Column(Order = 1)]
		public string Content { get; set; }
	}

	public class ForumPostLike
	{
		[Key, Column(Order = 0)]
		public int UserId { get; set; }
		[Key, Column(Order = 1), MaxLength(30)]
		public int PostId { get; set; }
	}
}